//环境配置
//
const config =  {
  "env": "dev",//默认当前环境, dev | prod
	"version":"0.0.1",
	"dev": {//开发环境
		"serviceBaseUrl": "https://api.loyu.top",
		"imageBaseHost":"https://static.loyu.top"
	},
	"prod": {//生产环境
		"serviceBaseUrl": "https://api.loyu.top",
		"imageBaseHost":"https://static.loyu.top"
	}
};

var serviceBaseUrl = config[config.env].serviceBaseUrl;
var imageBaseUrl = config[config.env].imageBaseHost;
var versionInfo = '@2025 隆宇电力 V1.2.1'	

function imageUrl(url){
	if(!url) {
		return imageBaseUrl + '';
	} else {
		return imageBaseUrl + url;
	}
}

module.exports = {
	serviceBaseUrl,
	imageUrl,
	versionInfo
};